Problem Note 46859: How to compute the width for $BASE64Xw. format
To determine the correct width for the $BASE64X format, obtain the byte length of the variable to be formatted from PROC CONTENTS. Substitute that length into the formula below in place of LEN. The result of this formula is the needed width for the format.
format_width=(LEN+2)/3*4
For example, if the variable length=48:
1. Add 2 which is 50
2. Divide 50 by 3 which is 16.666
3. Multiply the integer portion, 16, by 4 =64
You would need a width of 64 for the $BASE64X format.
If the format's width is too small, there is no error or note written to the log and the output does not occur.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M0 | 9.4 TS1M0 |
HP-UX IPF | 9.1 TS1M0 | 9.4 TS1M0 |
Linux | 9.1 TS1M0 | 9.4 TS1M0 |
OpenVMS Alpha | 9.1 TS1M0 | 9.4 TS1M0 |
Tru64 UNIX | 9.1 TS1M0 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Formats ==> Character
|
Date Modified: | 2012-11-16 11:39:15 |
Date Created: | 2012-06-21 10:59:39 |